/*
 * Project:    RoboBerDuino
 * Author:       Marco Tili
 *
 * Platform:    Arduino Due
 *
 * Filename:            TBD
 * Version:           00.00
 *
 * Description:
 *       TBD
 *
 * Changelog:
 *       2013-03-22   | M.Tili
 *                    | First Issue
 *
 *
 */

#define   HPOS_SYNC1       0
#define   HPOS_SYNC2       1
#define   HPOS_SYNC3       2
#define   HPOS_CODE        3
#define   HPOS_LENMSB      4
#define   HPOS_LENLSB      5
#define   BPOS_DATA_START  6

#define   HLENGTH          6
#define   BLENGTH_MAX    247
#define   FLENGTH          2
#define   FRAME_LENGTH   (HLENGTH+BLENGTH_MAX+FLENGTH)

#define   HVAL_SYNC1     '<'
#define   HVAL_SYNC2     '$'
#define   HVAL_SYNC3     '>'

#define   HVAL_CODE00   0x00
#define   HVAL_CODE01   0x01
#define   HVAL_CODE02   0x02
#define   HVAL_CODE03   0x03
#define   HVAL_CODE04   0x04
